const mongoose = require('mongoose');

const ExerciseSchema = new mongoose.Schema({
  exerciseType: { type: String, required: true },
  frequency: { type: String, required: true },
  duration: { type: Number, required: true }, // 以分钟为单位
  username: { type: String },
  avatar: { type: String },
  gender: { type: Number }
});

module.exports = mongoose.model('Exercise', ExerciseSchema);
